<!DOCTYPE html>
<html <?php language_attributes(); ?>>

<head>
	<meta charset="<?php bloginfo('charset'); ?>" />
	
	<?php if (is_search()) { ?>
	   <meta name="robots" content="noindex, nofollow" /> 
	<?php } ?>

	<title>
		   <?php
		      if (function_exists('is_tag') && is_tag()) {
		         single_tag_title("Tag Archive for &quot;"); echo '&quot; - '; }
		      elseif (is_archive()) {
		         wp_title(''); echo ' Archive - '; }
		      elseif (is_search()) {
		         echo 'Search for &quot;'.wp_specialchars($s).'&quot; - '; }
		      elseif (!(is_404()) && (is_single()) || (is_page())) {
		         wp_title(''); echo ' - '; }
		      elseif (is_404()) {
		         echo 'Not Found - '; }
		      if (is_home()) {
		         bloginfo('name'); echo ' - '; bloginfo('description'); }
		      else {
		          bloginfo('name'); }
		      if ($paged>1) {
		         echo ' - page '. $paged; }
		   ?>
	</title>
	
	<link rel="shortcut icon" href="/favicon.ico">
	
	<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
	
	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">

	<?php if ( is_singular() ) wp_enqueue_script('comment-reply'); ?>

	<?php wp_head(); ?>
    <link rel="stylesheet" href="<?php echo bloginfo('template_directory'); ?>/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="<?php echo bloginfo('template_directory'); ?>/css/skeleton.css"/>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
</head>

<body <?php body_class(); ?>>
	<div class="header-fix">
        <header>
            <div class="container">
                <div class="three columns">
                    <div class="logo">
                        <a href="/"><img src="<?php bloginfo('template_directory'); ?>/images/logo.png" alt=""/></a>
                    </div>
                </div>
                <div class="thirteen columns">
                    <nav>
                        <div id="menu-toggle">
                            <i class="fa fa-bars"></i>
                        </div>
                        <?php wp_nav_menu( array( 'menu' => 'Main Menu', 'container'=>'' ) ); ?>
                    </nav>
                </div>
            </div>
        </header>
        <section class="sub-header">
            <div class="container">
                <div class="sub-right"><?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('Search Widgets')) :
                    endif; ?></div>
                <div class="sub-right"><?php do_action('icl_language_selector'); ?></div>
            </div>
        </section>
	</div>
